package suites.as3Core.utilites.strings.cases
{
	import com.powwow.as3Core.utilites.strings.isStringBlank;

	import org.flexunit.asserts.assertEquals;

	public class StringsIsStringBlankTest
	{

		[Before]
		public function setUp():void
		{
		}

		[After]
		public function tearDown():void
		{
		}

		[BeforeClass]
		public static function setUpBeforeClass():void
		{
		}

		[AfterClass]
		public static function tearDownAfterClass():void
		{
		}

		[Test]
		public function test_for_not_null():void
		{
			//given 
			const value:String="sasa";
			//when 
			const result:Boolean=isStringBlank(value);
			//then
			assertEquals(false, result);
		}

		[Test]
		public function test_for_empty():void
		{
			//given 
			const value:String="";
			//when 
			const result:Boolean=isStringBlank(value);
			//then
			assertEquals(true, result);
		}

		[Test]
		public function test_for_null():void
		{
			//given 
			const value:String=null;
			//when 
			const result:Boolean=isStringBlank(value);
			//then
			assertEquals(true, result);
		}

		[Test]
		public function test_for_undefined():void
		{
			//given 
			var value:String;
			//when 
			const result:Boolean=isStringBlank(value);
			//then
			assertEquals(true, result);
		}

		[Test]
		public function test_for_undefined2():void
		{
			//given 
			var value:*;
			//when 
			const result:Boolean=isStringBlank(value);
			//then
			assertEquals(true, result);
		}

		[Test]
		public function test_for_undefined3():void
		{
			//given 
			const value:*=undefined;
			//when 
			const result:Boolean=isStringBlank(value);
			//then
			assertEquals(true, result);
		}
	}
}
